import { useStore, mapActions } from 'vuex'
export default function (keys) {
  const StoreFns = mapActions(keys)
  const mapStatetoSetup = {}
  Object.keys(StoreFns).forEach(fn => {
    mapStatetoSetup[fn] = StoreFns[fn].bind({ $store: useStore() })
  })
  return mapStatetoSetup
}
